PDF4Java Reference Documentation
com.o2sol.pdf4java.content Package / PDFContentExtractor Class / searchText Method / searchText(String,int,PDFContentExtractionContext) Method
Text to find in page content.
A set of options that specify how the text search should be performed. Available values are defined in com.o2sol.pdf4java.content.text.PDFTextSearchOptions class.
Context for text extraction.
In This Topic
    searchText(String,int,PDFContentExtractionContext) Method
    In This Topic
    Searches the page content for the specified text.
    Syntax

    Parameters

    text
    Text to find in page content.
    searchOptions
    A set of options that specify how the text search should be performed. Available values are defined in com.o2sol.pdf4java.content.text.PDFTextSearchOptions class.
    context
    Context for text extraction.

    Return Value

    A collection of zero or more search results.
    Exceptions
    ExceptionDescription
    When context is null or text is null or empty.
    See Also